package com.cms.entity.req;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Record对象", description="")
public class RecordReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "产物id")
    private Integer goodsId;

    @ApiModelProperty(value = "取货人/补货人id")
    private Integer userId;

    @ApiModelProperty(value = "数量变动")
    private Integer count;

    @ApiModelProperty(value = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime time;

    @ApiModelProperty(value = "备注")
    private String remark;

    private String action;

    private Integer pageSize;

    private Integer pageNum;

    @ApiModelProperty(value = "用户名")
    private String username; // 添加用户名字段

}

